package org.drawlineapi.tools.icons {
	import flash.display.Sprite;
	import org.drawlineapi.tools.LineFormat;
	
	/**
	 * ...
	 * @author Ricardo Teixeira
	 */
	public class Arrow extends Sprite {
		
		private var _format:LineFormat = new LineFormat ();
		
		public function Arrow() {
			this.lineFormat (this.format);
			
			this.graphics.moveTo ( 20, 0 );
			this.graphics.lineTo ( -20, -20 );
			
			this.graphics.moveTo ( 20, 0 );
			this.graphics.lineTo ( -20, 20 );
		}
		
		protected function lineFormat (f:LineFormat):void {
			this.graphics.lineStyle (f.thickness, f.color, f.alpha);
		}
		
		public function get format():LineFormat {
			return _format;
		}
		
		public function set format(value:LineFormat):void {
			_format = value;
			this.lineFormat (value);
		}
		
	}

}